#include <stdio.h>
#include<string.h>
int main ()
{
	char word1[5] = {'G', 'O', 'O', 'D', '\0'};
	printf("字符串: %s\n,长度：%lld\n", word1, strlen(word1)); //'\0'是一个字符，但不算在字符串长度中
	
	char word2[5] = "GOOD"; //自动加'\0'
	printf("字符串: %s\n,长度：%lld\n", word2, strlen(word2));//'\0'是一个字符，但不算在字符串长度中
	
	char word3[] = "GOOD";//自动加'\0'
	printf("字符串: %s\n,长度：%lld\n", word3, strlen(word3));//'\0'是一个字符，但不算在字符串长度中
	
	char word4[4] = {'G', 'O', 'O', 'D'};
	printf("字符串: %s\n,长度：%lld\n", word4, strlen(word4)); //pay attention
	return 0;
}

